package entity

import "time"

type User struct {
	ID        int       `gorm:"column:id;PRIMARY_KEY"`
	SchoolId  int       `gorm:"column:school_id"`
	Mobile    string    `gorm:"column:mobile"`
	Name      string    `gorm:"column:name"`
	Gender    string    `gorm:"column:gender"`
	Avatar    string    `gorm:"column:avatar"`
	State     int       `gorm:"column:state"`
	Amount    float64   `gorm:"column:amount"`
	Point     int       `gorm:"column:point"`
	CreatedAt time.Time `gorm:"column:created_at"`
	UpdatedAt time.Time `gorm:"column:updated_at"`
}

func (User) TableName() string {
	return "l_user"
}
